Exp=M
ModuleFileName=SoftKey.cs
@end
                                        
//´칤Զɣѡģ顱
using System;
using System.Runtime.InteropServices;

using System.Windows.Forms;

	/// <summary>
	/// ڹ̵ҳ->->УȫУѡ棬ȷ
	/// </summary>
	public class softkey
	{
		[DllImport ("My3l_ex.dll")]
		public static extern unsafe int FindPort_3(string filename,int start,  char * KeyPath_2);
		[DllImport ("My3l_ex.dll")]
		public static extern unsafe int FindPort_4(string filename,int start, string HKey,string LKey, char * KeyPath_2);
		[DllImport ("My3l_ex.dll")]
public static extern unsafe int Cal_2(string filename,int start, int pos,ref short a,ref short b,ref short c,ref short d, char * KeyPath_2,int cycle);
		[DllImport ("My3l_ex.dll")]
		public static extern unsafe int CalculateEx_3(string filename,int start, int pos,ref short a,ref short b,ref short c,ref short d, char * KeyPath_2,int cycle);
		[DllImport ("My3l_ex.dll")]
		public static extern unsafe int E_Ex_3(string HKey,string LKey,string filename, string filename_lll,char * KeyPath_2);

		private static long LastError;
		private static char [] KeyPath;
		public softkey()
		{
			LastError = 0; //ʼΪ޴
		}
		
		//YGetLastError
		//ĿģȡĴ룬Ϊ0ʾûд
		//ؽĴ
		public  long YGetLastError()
		{
			return LastError;
		}

		#_ini#
		#_ini_2#
		#Ystrcat#
		#YCompareString#
		#Ystrcpy#
		#YAdd#
		#YSetValue#
		#YDivide#
		#Ymultiply#
		#YDecrease#
		#compare#
		#CheckKey#
		#Yor#
		#YAnd#	
		
	}

